package com.lancoo.znbkxx.teacher.service

import com.lancoo.znbkxx.teacher.model.data.*
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author : Admin
 * @date   : 2019/7/24 9:03
 * @desc   :
 */
interface SystemService {

    /*获取知识点课件基础地址及资源（音视频）文件基础地址*/
    @GET("SystemConfig/GetSystemConfigInfo")
    suspend fun getSystemConfigInfo(
        @Query("Platform") platform: Int,
        @Query("SubjectId") subjectId: String,
        @Query("Token") token: String,
        @Query("UserID") userID: String
    ): ZnbkResponse<SystemInfo>

    /*获取知识点课件基础地址及资源（音视频）文件基础地址*/
    @GET("W_ZNBK_GetSystemConfigInfo")
    suspend fun getSystemConfigInfoComment(
        @Query("Platform") platform: Int,
        @Query("SubjectId") subjectId: String,
        @Query("Token") token: String,
        @Query("UserID") userID: String
    ): ZnbkResponse<SystemInfo>

    @GET("CourseClass/GetCourseClassList")
    suspend fun getCourseClassList(
        @Query("CourseNo") courseNo: String,
        @Query("Token") token: String,
        @Query("UserID") userID: String,
        @Query("SubjectID") subjectID: String
    ): ZnbkResponse<MutableList<BaseInfo>>

    @GET("Paper/GetCatalog")
    suspend fun getCatalog(
        @Query("Token") token: String,
        @Query("UserID") userID: String,
        @Query("SchoolID") schoolID: String
    ):ZnbkResponse<MutableList<PaperCatlog>>

    @GET("W_ZNBK_ObsInfo")
    suspend fun getObsInfo():CoursewareOBSInfo
}